package com.wntms.ywa.dao;


import com.wntms.ywa.pojo.CustomerIn;
import com.wntms.ywa.pojo.FreightContract;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/*
收货人信息操作
 */
@Mapper
public interface ReceiveDao {
    //增加收货人信息
    @Insert("insert into customer_in values(null,#{name},#{number},#{address})")
    public void add(CustomerIn customerIn);

    //查找收货人信息
    @Select("select * from customer_in where id = #{id}")
    public FreightContract findById(Integer id);
}
